home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 6 / MacMania 6.toast / / Multimedia & Desktop / sk8 / SK8InJava / Concentration / Java Code / player.java < prev    next >
Encoding:
Java Source  |  1997-02-27  |  823 b   |  41 lines  |  [TEXT/SK8 ]

  1. /*  SK8 © 1997 Apple Computer, Inc.
  2.     This code is protected under the current SK8 License
  3.     See http://sk8.research.apple.com/ for more information
  4.     Apple Research Laboratories
  5. */
  6.  
  7.  
  8.  
  9. import java.awt.*;
  10.  
  11.  
  12. public class player {
  13.     
  14.     //----------------------------------------
  15.     //Property Definitions:
  16.     //----------------------------------------
  17.     
  18.     //The score Property:
  19.     protected int fScore = 0;
  20.     public int score () {
  21.         return fScore;
  22.     }
  23.     /*   the player object.
  24.     add the labels
  25.     */
  26.     public Object setscore ( int newvalue ) {
  27.         fScore = newvalue;
  28.         ((label) this.scorelabel()).settext("" + newvalue + "");
  29.         return null;
  30.     }
  31.     
  32.     //The scorelabel Property:
  33.     protected actor fScorelabel = null;
  34.     public actor scorelabel () {
  35.         return fScorelabel;
  36.     }
  37.     public void setscorelabel (actor value) {
  38.         fScorelabel = value;
  39.     }
  40. }
  41.